package com.devops.entity.resp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ErrorReason {

    // 失败信息
    private String msg;
    // 失败类型
    private String type;
    // 失败值
    private String code;
    private String obj;

    public ErrorReason(String msg) {
        this.msg = msg;
    }

    public ErrorReason(String msg, String obj) {
        this.msg = msg;
        this.obj = obj;
    }
}
